package com.demo.base.template;

import com.demo.base.template.impl.CompanyAServiceImpl;
import com.demo.base.template.impl.CompanyBServiceImpl;

/**
 * @author : YU.TAN
 * @date : 2021/10/28 15:31
 */
public class TestTemplate {
    public static void main(String[] args) {
        CompanyBServiceImpl bService=new CompanyBServiceImpl();
        String serviceB = bService.header("Service B");
        System.out.println(serviceB);

        CompanyAServiceImpl aService=new CompanyAServiceImpl();
        String serviceA =  aService.header("Service A");
        System.out.println(serviceA);


    }
}
